package menu;

import java.util.Scanner;

/**
 * 程序主入口
 */

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int input = 0;
        do{
            new StartMenu();
            System.out.print("请输入你的选择:>");
            input = scanner.nextInt();
            switch (input){
                case 1:
                    new ModeChoice().start();
                    break;
                case 2:
                    new RecordMenu().start();
                    break;
                case 3:
                    new RuleMenu().start();
                    break;
                case 4:
                    new SetMenu().start();
                    break;
                case 0:
                    System.out.println("游戏结束");
                    System.exit(0);
                default:
                    System.out.println("输入错误, 请重新输入!");
                    break;
            }
        }while (true);
    }
}